home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
5 Star Games: DOS Edition 2
/
5 Star Games - DOS Edition (1995)(Ready to Run).iso
/
dbc
/
db_dos.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-28
|
1KB
|
47 lines
/****************************************************************************/
/* HEADER FILE FOR DATABOSS MODULE: DB_DOS */
/****************************************************************************/
typedef struct {
word ax;
word bx;
word cx;
word dx;
word si;
word di;
word cflag;
word flags;
} db_wordregs;
typedef struct {
byte al,ah;
byte bl,bh;
byte cl,ch;
byte dl,dh;
} db_byteregs;
typedef union {
db_wordregs x;
db_byteregs h;
} db_regs;
#ifndef __TURBOC__
#define MK_FP(seg,ofs) ((void far *) \
(((unsigned long)(seg) << 16) | (unsigned)(ofs)))
#define hardresume(res) _hardresume(res)
#define harderr(eproc) _harderr(eproc)
#endif
#define delay(msecs) db_delay(msecs)
#define sound(freq) db_sound(freq)
#define nosound() db_nosound()
void swinterrupt(byte intno, db_regs *inregs, db_regs *outregs);
int paramcount(void);
strptr paramstr(int c);
void db_delay(word msecs);
void db_sound(word freq);
void db_nosound(void);
/***************************** END OF DB_DOS.H *****************************/